{include file=header.html}
<script type="text/javascript" src="{lib file=rewrite.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=search_goods.js}?v={$ver_info}" charset="utf-8"></script>
<div class="content">
    <!--当前位置-->
    {include file=path.html}
    <div class="decorate f-cb" id="con-l">
        <div class="decorate-l f-fl" id="decorate_l">
            <!--{foreach from=$cates.children item=placecates}-->
            <!--{if !$cates.select or $cates.select and $placecates.select}-->
            <div class="con-l">
                <div class="con-l-t">
                    <h4>
                        <a href="{url app=place_category&cate_id=$placecates.id}">{$placecates.value|escape}</a>
                    </h4>
                </div>
                <!--{foreach from=$placecates.children item=childs2}-->
                <dl {if $smarty.get.cate_id eq $childs2.id}class="current"{/if}>
                    <dt {if !$childs2.children}class="none"{/if}>
                        <a class="hov {if $smarty.get.cate_id eq $childs2.id}active{/if}" href="{url app=place_category&cate_id=$childs2.id}">{$childs2.value|escape}</a>
                    </dt>
                    <!--{foreach from=$childs2.children item=childs3}-->
                    <dd>
                        <a href="{url app=place_category&cate_id=$childs3.id}" {if $smarty.get.cate_id eq $childs3.id}class="active"{/if}>{$childs3.value|escape}</a>
                    </dd>
                    <!--{/foreach}--> </dl>
                <!--{/foreach}--> </div>
            <!--{/if}-->
            <!--{/foreach}--> </div>
        <div class="list-pl">
            <div class="list-plt f-cb">
                <div class="list-pltl" id="list-pltl">
                    <ul class="f-cb">
                        <li>
                            <a href="javascript:void(0);" ectype="order" orders="" class="{if $orders eq ''}active{/if}" rel="nofollow">综合</a>
                        </li>
                        <li>
                            <a href="javascript:void(0);" ectype="order" orders="sales-desc" class="{if $orders eq 'sales-desc'}active{/if} arrows" rel="nofollow">
                                销量 <i>&#xe6c2;</i>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:void(0);" ectype="order" orders="add_time-desc" class="{if $orders eq 'add_time-desc'}active{/if} arrows" rel="nofollow">
                                上架时间 <i>&#xe6c2;</i>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:void(0);" ectype="order" {if $orders eq 'price-asc'}orders="price-desc"{else}orders="price-asc"{/if}  class="{if $orders eq 'price-asc' || $orders eq 'price-desc'}active{/if} arrows" rel="nofollow">
                                价格
                               {if $orders eq 'price-asc'}
                                <i>&#xe6c3;</i>
                                {else}
                                <i>&#xe6c2;</i>
                                {/if}
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="filter-price-wrap">
                    <div class="filter-price">
                        <div class="filter-pricet">
                            <i>￥</i>
                            <input name="start_price" id="start_price" value="{$param.price.min}" maxlength="8" onkeyup="this.value = this.value.replace(/\D/g, '')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="start_price" type="text" onfocus="wllistfn.filter_pf(this)">
                            <i>-</i>
                            <input name="end_price" value="{$param.price.max}" id="end_price" maxlength="8" onkeyup="this.value = this.value.replace(/\D/g, '')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="end_price" type="text" onfocus="wllistfn.filter_pf(this)"></div>
                        <div class="filter-priceb f-cb">
                            <a id="filter-pba" onclick="wllistfn.filter_reset(this)" rel="nofollow">清空</a>
                            <a href="javascript:void(0)" onclick="get_price()" id="filter-pbb" rel="nofollow">确定</a>
                        </div>
                    </div>
                </div>
                <div class="filter-price-wrap">
                    <div class="filter-price">
                        <div class="filter-pricet">
                            <i>起订量</i>
                            <input name="start_num" id="start_num" value="{$param.start_stock}" maxlength="8" onkeyup="this.value = this.value.replace(/\D/g, '')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))" class="start_num" type="text" value="{if $gets.start_stock}{$gets.start_stock}{/if}" onfocus="wllistfn.filter_pf(this)">
                            <i>件以下</i>
                        </div>
                        <div class="filter-priceb f-cb">
                            <a id="filter-pbc" onclick="wllistfn.filter_reset(this)" rel="nofollow">清空</a>
                            <a href="javascript:void(0)" onclick="get_start_num()" id="filter-pbd" rel="nofollow">确定</a>
                        </div>
                    </div>
                </div>
                <div class="filter-next">
                    {$page_info.curr_page}/{$page_info.page_count}&nbsp;&nbsp;&nbsp;&nbsp;
                    <!--{if $page_info.prev_link}-->
                    <a href="{$page_info.prev_link}" rel="nofollow">&#xe6d1;</a>
                    <!--{else}-->
                    <a style="border-color:#ccc;color:#ccc" href="javascript:;" rel="nofollow">&#xe6d1;</a>
                    <!--{/if}-->
                    <!--{if $page_info.next_link}-->
                    <a href="{$page_info.next_link}" rel="nofollow">&#xe6d4;</a>
                    <!--{else}-->
                    <a style="border-color:#ccc;color:#ccc" href="javascript:;" rel="nofollow">&#xe6d4;</a>
                    <!--{/if}--> 
                </div>
                <div class="filter-result">找到商品：{$page_info.item_count}件</div>
            </div>
            <!-- {if $lists} -->
            <ul class="list-plw f-cb">
                <!--{foreach from=$lists item=goods}-->
                <li>
                    <div>
                        <a href="{url app=goods&id=$goods.goods_id}" title="{$goods.goods_name|escape}" target="_blank">
                            <img width="221" height="221" class="imgload" alt="{$goods.goods_name|escape}" src="{$goods.default_image}"></a>
                    </div>
                    <p class="cr-price">
                        <span>¥{$goods.price}</span>
                    </p>
                    <p class="cr-title">
                        <a href="{url app=goods&id=$goods.goods_id}" title="{$goods.goods_name|escape}" target="_blank">{$goods.goods_name|escape}</a>
                    </p>
                    <p class="cr-shop">
                        <a href="{url app=store&id=$goods.store_id}" title="{$goods.store_name|escape}" target="_blank">{$goods.store_name|escape}</a>
                    </p>
                </li>
                <!--{/foreach}--> 
            </ul>
            <!-- {else} -->
            <div class="no-result">
                <table>
                  <tr>
                    <td>
                        <img src="{res file=images/icon/no_result.png}" />
                        <p>抱歉，臣妾找不到啊！</p>
                      </td>
                  </tr>
                </table>
            </div>
            <!-- {/if} -->
            <div class="goods-page-wrap f-cb">
                <div class="goods-page">{include file=goods.page.bottom.html}</div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
    var $decorate_l_a=$('#decorate_l').find('a'),hasActive=false,hasCurrent=true;
    $.each($decorate_l_a,function(){
        if($(this).hasClass('active')){
            $(this).closest('dl').addClass('current');
            hasActive=true;
            return false;
        }
    });
    // if(!hasActive){
    //     $.each($('#decorate_l').find('dl'), function() {
    //          if($(this).hasClass('current')){
    //             hasCurrent=false;
    //             return false;
    //          }
    //     });
    //     if(hasCurrent){
    //         $('#decorate_l').find('dl:first').addClass('current');
    //     }
    // }
});
</script>
{include file=footer.index.html}